// 管理接口
import axios from '../utils/request';

function getList(params) {
    return axios.get('/list', { params });
}

function like(body) {
    return axios.post('/like', body);
}

function deleteList(id) {
    return axios.delete('/list/' + id);
}

function addList(body) {
    return axios.post('/list', body);
}
function editList(body) {
    return axios.put('/list', body)
}
function login(body) {
    return axios.post('/login', body)
}
function editUser(body) {
    return axios.put('/user', body)
}
// http://182.254.220.243:7001/tools/saveavatar
export default {
    getList,
    like,
    deleteList,
    addList,
    editList,
    login,
    editUser
}